package work20241202_chap5oop;

/**
 * @author zdl
 * @date 2024/12/2
 */
class MyClass{
    int value; //10
}
public class Demo3{
    public static void main(String args[]){
        int a = 10;
        int b = a;
        b ++ ;
        System.out.println(a);//10
        MyClass mc1 = new MyClass();
        mc1.value = 10;
        MyClass mc2 = mc1;
        mc2.value ++; //11
        System.out.println(mc1.value);//11
    } }
